package org.controller.test;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.core.RabbitAdmin;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class App {
	
	
	public static void  main(String[] args){
		
		ApplicationContext context=SpringApplication.run(App.class);
		//拿到RabbitAdmin
		RabbitAdmin admin=context.getBean(RabbitAdmin.class);
		System.out.println(admin);
		
		
	}

}
